<?php
/**
 * Created by PhpStorm.
 * User: yafex
 * Date: 2021/3/16
 * Time: 11:10
 */
class ctrl_wish_chart extends L {

    /**
     * 描述 : 图标页面展示
     * 作者 : Zoro.Zhu
     */
    public function index(){
        $chart = model_wishFlow::getAccountChart($_GET);
        //根据时间搜索
        if (!empty($_GET['timeS']) || !empty($_GET['timeE']) || !empty($_GET['type'])) {
            echo json_encode(['code' => 200, 'info' => '加载成功', 'data' => json_encode($chart)]);
            exit;
        }
        $this->view->type = model_com::getVsConfig('wishChartType');
        $this->view->chart = json_encode($chart);
        $this->view->title = 'Wish店铺统计图表';
        $this->display('/html/wish/chart.html');
    }

}

return true;